package common.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class User{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String num;
    private String password;
    private String salt;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }



    @Override
    public String toString() {
        return "User{" +
                ", id=" + id +
                ", name=" + name +
                ", num=" + num +
                ", password=" + password +
                ", salt=" + salt +

                "}";
    }

}
